home *** CD-ROM | disk | FTP | other *** search
- _root.theLocalSharedObject = SharedObject.getLocal("FTurtleCookie");
- if(_root.theLocalSharedObject.data.volume == undefined)
- {
- _root.theLocalSharedObject.data.volume = 0.8;
- }
- _root.but_click = new Sound();
- _root.but_click.attachSound("menu_hit.wav");
- _root.but_tog = new Sound();
- _root.but_tog.attachSound("menu_toggle.wav");
- _root.musik = new Sound();
- _root.musik.attachSound("gameplay3.mp3");
- _root.hero_death = new Sound();
- _root.hero_death.attachSound("hero_death.wav");
- _root.set_sounds = function(volume_lvl)
- {
- _root.theLocalSharedObject.data.volume = volume_lvl;
- _root.theLocalSharedObject.flush();
- _root.but_click.setVolume(70 * volume_lvl);
- _root.but_tog.setVolume(5 * volume_lvl);
- _root.musik.setVolume(90 * volume_lvl);
- _root.hero_death.setVolume(80 * volume_lvl);
- _root.hero_fall = new Sound();
- _root.hero_fall.attachSound("hero_fall.wav");
- _root.hero_fall.setVolume(100 * volume_lvl);
- _root.hero_jump = new Sound();
- _root.hero_jump.attachSound("hero_jump00.wav");
- _root.hero_jump.setVolume(100 * volume_lvl);
- _root.hero_mon = new Sound();
- _root.hero_mon.attachSound("hero_monster.wav");
- _root.hero_jump.setVolume(100 * volume_lvl);
- _root.hero_step = new Sound();
- _root.hero_step.attachSound("hero_land.wav");
- _root.hero_step.setVolume(60 * volume_lvl);
- _root.hero_dmg = new Sound();
- _root.hero_dmg.attachSound("hero_damage0.wav");
- _root.hero_dmg.setVolume(100 * volume_lvl);
- _root.pick_gsmall = new Sound();
- _root.pick_gsmall.attachSound("pickup_coin.wav");
- _root.pick_gsmall.setVolume(60 * volume_lvl);
- _root.pick_gbig = new Sound();
- _root.pick_gbig.attachSound("pickup_coin_big.wav");
- _root.pick_gbig.setVolume(70 * volume_lvl);
- _root.pick_diam = new Sound();
- _root.pick_diam.attachSound("pickup_gem.wav");
- _root.pick_diam.setVolume(70 * volume_lvl);
- _root.pick_hp = new Sound();
- _root.pick_hp.attachSound("bottle_life.wav");
- _root.pick_hp.setVolume(100 * volume_lvl);
- _root.pick_mp = new Sound();
- _root.pick_mp.attachSound("bottle_air.wav");
- _root.pick_mp.setVolume(100 * volume_lvl);
- _root.savepoint = new Sound();
- _root.savepoint.attachSound("checkpoint.wav");
- _root.savepoint.setVolume(100 * volume_lvl);
- _root.menumus = new Sound();
- _root.menumus.attachSound("menu.wav");
- _root.menumus.setVolume(100 * volume_lvl);
- _root.snd_snain_die = new Sound();
- _root.snd_snain_die.attachSound("snail_die");
- _root.snd_snain_die.setVolume(100 * volume_lvl);
- _root.snd_fish3_die = new Sound();
- _root.snd_fish3_die.attachSound("fish3_die");
- _root.snd_fish3_die.setVolume(100 * volume_lvl);
- _root.snd_fish1_die = new Sound();
- _root.snd_fish1_die.attachSound("fish1_die");
- _root.snd_fish1_die.setVolume(100 * volume_lvl);
- _root.snd_octopus_die = new Sound();
- _root.snd_octopus_die.attachSound("octopus_die");
- _root.snd_octopus_die.setVolume(100 * volume_lvl);
- _root.snd_level_complete = new Sound();
- _root.snd_level_complete.attachSound("level_complete");
- _root.snd_level_complete.setVolume(100 * volume_lvl);
- _root.snd_fruit_fall = new Sound();
- _root.snd_fruit_fall.attachSound("fruit_fall1");
- _root.snd_fruit_fall.setVolume(100 * volume_lvl);
- _root.snd_fruit_shake = new Sound();
- _root.snd_fruit_shake.attachSound("fruit_shake");
- _root.snd_fruit_shake.setVolume(100 * volume_lvl);
- };
- _root.set_sounds(_root.theLocalSharedObject.data.volume);
-